<%@ page import="com.oval.util.*" %>
<%  
	  String strSessionLanguageCode = (String)session.getAttribute("languagecode");
  	if(strSessionLanguageCode == null)
  	{
    	
    	strSessionLanguageCode = "cn";
   	} 
  	boolean stoFlag = false;
  	if(session.getAttribute("errorcode")!=null)
  	{
  		java.util.Vector em = (java.util.Vector)session.getAttribute("errorcode");
  		for(int j=0;j<em.size();j++)
  		{
  			java.util.HashMap hm = (java.util.HashMap)em.elementAt(j);
  			if(hm!=null && "SESSION_TIMEOUT".equals((String)hm.get("messagecode")))
  				stoFlag = true;	
  		}
  	}
  if(session.getAttribute("sessionflag") == null || stoFlag || session.getAttribute("userinfo") == null)
	{
		java.util.Vector errs = new java.util.Vector();
		java.util.HashMap errMessage = new java.util.HashMap();
		errMessage.put("messagecode", "SESSION_TIMEOUT"); 
		errs.addElement(errMessage);
		session.setAttribute("errorcode", errs);
		response.sendRedirect(ConstantProp.DEFAULT_ROOT_PATH + "/SessionError.jsp?" + OvalTools.randomURL() + "&languagecode=" + strSessionLanguageCode);
		return;
	}
	
  	
%>
